cmake_minimum_required(VERSION 3.19.8)
PROJECT(idc_bridge C)

include_directories(./ ./bridge ./utils ./comm ./ubus)

add_subdirectory(./bridge)
add_subdirectory(./utils)
add_subdirectory(./ubus)

aux_source_directory(. SRCS)
set(OBJ_LIST cjson uci pthread ubus ubox netsnmp idc_ubus bridge utils)

add_executable(idc_bridge ${SRCS})

target_link_libraries(idc_bridge ${OBJ_LIST})
INSTALL(TARGETS idc_bridge RUNTIME DESTINATION bin)











